CC= gcc
CFLAGS= -Wall -g -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500
LFLAGS= -Wall -g

OBJS= sharedmemory.o
#TARGET= exe

include ../arch.mk

LIBS=
include $(addsuffix libs.mk, $(dir $(OBJS)))

CCDV= ../ccdv

all: $(OBJS) $(CCDV)

$(CCDV):
	@( cd ../_ccdv; $(MAKE))

.c.o: $(CCDV)
	@$(CCDV) $(CC) $(CFLAGS) $< -c -o $@


.PHONY: clean
clean:
	rm -f $(OBJS)

.PHONY: distclean
distclean: clean
#	rm -f $(TARGET)

